package org.example.chapter4.aspect.validator.impl;

import org.example.chapter4.aspect.validator.UserValidator;
import org.example.chapter4.pojo.User;

/**
 * @author CoderXshuai
 * @date 2020/7/26/0026 19:03
 */

public class UserValidatorImpl implements UserValidator {
    @Override
    public boolean validate(User user) {
        System.out.println("引入新的接口: " + UserValidator.class.getSimpleName());
        return user != null;
    }
}
